import socket
import time
host = "localhost"
port = 51423


s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.bind((host,port))
s.listen(1)
con , add =  s.accept()

print "connected by : ",add
while True :
	now_time = int(time.time())
    	clientname = con.getpeername()
    	
	data =  con.recv(1024) 
    	if not data:
		continue 
	con.sendall (data)
	con.sendall (str(clientname))
    	con.sendall("yes\n")
con.close()

